package com.sky.mapper;

import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 新增菜品口味
     * @param flavors
     * @param dishId
     */
    void saveBatch(List<DishFlavor> flavors, Long dishId);

    /**
     * 根据id查询菜品
     * @param id
     * @return
     */
    List<DishFlavor> getByDishId(Long id);

    /**
     * 根据id删除菜品
     * @param id
     */
    void deleteByDishId(Long id);
}
